package com.dengyafei.mapper;

import com.dengyafei.bean.AppointmentEntity;
import com.dengyafei.bean.AppointmentEntityExample;
import java.util.List;

import com.dengyafei.domin.dto.AppointmentCancelDTO;
import com.dengyafei.domin.dto.AppointmentSearchDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 邓亚非
 */
@Mapper
public interface AppointmentEntityMapper {
    int countByExample(AppointmentEntityExample example);

    int deleteByExample(AppointmentEntityExample example);

    int deleteByPrimaryKey(Integer aid);

    int insert(AppointmentEntity record);

    int insertSelective(AppointmentEntity record);

    List<AppointmentEntity> selectByExample(AppointmentEntityExample example);

    AppointmentEntity selectByPrimaryKey(Integer aid);

    int updateByExampleSelective(@Param("record") AppointmentEntity record, @Param("example") AppointmentEntityExample example);

    int updateByExample(@Param("record") AppointmentEntity record, @Param("example") AppointmentEntityExample example);

    int updateByPrimaryKeySelective(AppointmentEntity record);

    int updateByPrimaryKey(AppointmentEntity record);

    AppointmentEntity checkIsAppointment(Integer mid,Integer gid);

    List<AppointmentEntity> queryAllApps(Integer hid);

    List<AppointmentEntity> queryByParams(Integer hid,String params);

    List<AppointmentEntity> queryByGid(Integer gid);

    Integer cancel(AppointmentCancelDTO appointmentCancelDTO);
}